import request from '@/utils/request'
// src/api/chapters.js


export function conversationsList(data) {
  return request({
    url: "/api/v1/conversation/list",
    method: "POST",
    data
  });
}


export function conversationGenerate(data) {
  return request({
    url: "/api/v1/conversation/generate",
    method: "POST",
    data
  });
}



export function conversationModels(data) {
  return request({
    url: "/api/v1/conversation/models",
    method: "POst",
    data
  });
}


export function conversationSave(data) {
  return request({
    url: "/api/v1/conversation/save",
    method: "POST",
    data
  });
}
export function conversationChangeModels(data) {
  return request({
    url: "/api/v1/conversation/change_model",
    method: "POST",
    data
  });
}
export function conversationMsgDelete(data) {
  return request({
    url: "/api/v1/conversation/del_msg",
    method: "POST",
    data
  });
}

export function conversationLoop(data) {
  return request({
    url: "/api/v1/conversation/loop",
    method: "POST",
    data
  });
}

export function conversationStop(data) {
  return request({
    url: "/api/v1/conversation/stop",
    method: "POST",
    data
  });
}

export function getLastPairId(data) {
  return request({
    url: "/api/v1/conversation/last_pair_id",
    method: "POST",
    data
  });
}

export function stopConversation(data) {
  return request({
    url: "/api/v1/conversation/stop",
    method: "POST",
    data
  });
}


export function conversationDefault(data) {
  return request({
    url: "/api/v1/conversation/default_model",
    method: "POST",
    data
  });
}
